Skip to content

Restore integration tests with numeric tolerance#477

Merged
dav-sonn merged 2 commits into
developfrom
restore_integration_tests
Jun 2, 2026
Merged

Restore integration tests with numeric tolerance#477
dav-sonn merged 2 commits into
developfrom
restore_integration_tests

Conversation

@dav-sonn

@dav-sonn dav-sonn commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Introduce a numeric relative and absolute tolerance in RunSimPathsIntegrationTest. Regenerate expected CSV outputs to match the updated run (AlignmentAdjustmentFactors1.csv, EmploymentStatistics1.csv, HealthStatistics1.csv, Statistics1.csv, Statistics21.csv).

Introduce a 1% numeric relative tolerance in RunSimPathsIntegrationTest and use numbersMatchWithTolerance for numeric comparisons. Adjust test_run.yml to run a single run (maxNumberOfRuns=1) with randomSeed=606 and popSize=50000. Regenerate expected CSV outputs to match the updated run (AlignmentAdjustmentFactors1.csv, EmploymentStatistics1.csv, HealthStatistics1.csv, Statistics1.csv, Statistics21.csv).
@dav-sonn dav-sonn requested a review from Copilot June 1, 2026 16:14
@dav-sonn dav-sonn requested review from andrewbaxter439 and removed request for Copilot June 1, 2026 16:14
Increase integration runs in test config (maxNumberOfRuns 1->2), adjust randomSeed and popSize, and update the numeric comparison in RunSimPathsIntegrationTest to use combined absolute+relative epsilons with proper NaN/Infinity handling (remove old tolerance method). Update expected integration output CSVs to include results for the additional runs and reflect the seed/population changes (AlignmentAdjustmentFactors1.csv, EmploymentStatistics1.csv, HealthStatistics1.csv, Statistics1.csv, Statistics21.csv).

@andrewbaxter439 andrewbaxter439 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey this looks good, and if passing tests when running all seems a good move to have this back in. Should be sensitive enough to 'keep an eye' on the runs as new pulls come in and check that they're not differing where you wouldn't expect them to be. Think this can go ahead. 👍

@dav-sonn dav-sonn merged commit 65e3c3e into develop Jun 2, 2026
6 checks passed
@dav-sonn dav-sonn deleted the restore_integration_tests branch June 2, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants